//
//  CommentCell.m
//  JiaoX
//
//  Created by yinqy on 15/1/9.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "CommentCell.h"
#import "CommentCellView.h"
@interface CommentCell()
{
    
}

@end
@implementation CommentCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"COMMENTCELL";
    CommentCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[CommentCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    return cell;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        CommentCellView *comdCellView =  [[CommentCellView alloc]init];
        _comtCellView = comdCellView;
        [self addSubview:comdCellView];
    }
    return self;
}

-(void)setComtframe:(CommentViewFrame *)comtframe{
    _comtframe = comtframe;
    [_comtCellView setComtframe:comtframe];
}
@end
